package com.share51.novel.init;

import com.share51.novel.entity.Category;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * 小说分类vo对象
 * @author gb
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode
public class CategoryVo {

    private Integer id;

    private String name;

    private String keywords;

    private String summary;

    CategoryVo(Category category) {
        BeanUtils.copyProperties(category,this);
    }
}
